package com.fcdream.brpg.weixin;

import com.fcdream.brpg.weixin.bo.MenuBo;
import com.jfinal.weixin.sdk.api.ApiConfig;
import com.jfinal.weixin.sdk.jfinal.ApiController;

/**
 * Created by shmdu on 2016/6/12.
 */
public class WeixinApiController extends ApiController {
    @Override
    public ApiConfig getApiConfig() {
        return new WeixinConfig();
    }

    public void createMenu() {

    }

    private static String dealCreateMenu() {
        MenuBo.FirstMenuBo firstMenuBo = new MenuBo.FirstMenuBo();
        firstMenuBo.name = "创建游戏";
        MenuBo.SecondMenuBo secondMenuBo1 = new MenuBo.SecondMenuBo();
        secondMenuBo1.name = "谁是卧底";
        secondMenuBo1.key = "";
        secondMenuBo1.type = "click";
        MenuBo.SecondMenuBo secondMenuBo2 = new MenuBo.SecondMenuBo();
//        secondMenuBo1.name = "杀人游戏";
//        secondMenuBo1.type = "click";
//        MenuBo.SecondMenuBo secondMenuBo3 = new MenuBo.SecondMenuBo();
//        secondMenuBo1.name = "狼人杀";

        return null;
    }
}
